package cn.kilo.trigger.job;

import cn.kilo.domain.repository.IStrategyRepository;
import cn.kilo.domain.support.TimeUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.scheduling.annotation.Scheduled;

import javax.annotation.Resource;
import java.awt.image.TileObserver;

/**
 * @author kilok
 */
@Component
@Slf4j
public class Month{

    @Resource
    private IStrategyRepository repository;


    @Scheduled(cron = "0 0 0 L * ?")
    public void test(){
        repository.setMothTime();
    }
}
